define(function(){
    return function (res, local, cont){
        let str = ""
        if(!res){
           str = ''
        }else{
            for(let i=0;i<res.length;i++){
                for(let j=0;j<local.length;j++){
                    if(res[i].proId === local[j].id){
                        str += `<tr index="${res[i].proId}">
                                <td align="center"><input class="check" type="checkbox" ${local[j].flag===0 ? '' : 'checked'}></td>
                                <td><img src="${res[i].url}" alt=""></td>
                                <td>${res[i].name}</td>
                                <td><input type="number" class="setNum" value="${local[j].num}"></td>
                                <td class="Price">${res[i].price}</td>
                                <td class="sumPric">${res[i].price * local[j].num}</td>
                                <td class="del">删除</td>
                            </tr>`
                    }
                }
            }
        }
        
        cont.html(str);
    }
})